import { netLog } from "electron";
import { Logger } from "@jcstdio/jc-utils";

import { APP_LOG_PATH, APP_DATAFILE_LOG_PATH, NET_LOG_PATH } from "@/settings";

async function setnetLog(): Promise<void> {
    await netLog.startLogging(NET_LOG_PATH);
}

const logger = new Logger("main process");
export function getLogger(): Logger {
    return logger;
}

export {
    // setRuntimeLogger,
    setnetLog,
};
